package com.example.zhu.Mapper;

import com.example.zhu.VO.MenuVO;
import com.example.zhu.dto.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface MenuMapper {
     @Select(" SELECT * FROM menu WHERE  is_deleted = 0 and visible = 1 order by p_id, sort")
    List<MenuVO> getMenuTreeByDeptIdAndRole(User user);
}
